Java Deep Learning Essentials by 2016

Java Deep Learning Essentials by 2016
Author: 2016
Language: eng
Format: mobi, epub
Publisher: Packt Publishing

Here, the delta can be described as follows:

Now we have all the equations necessary for implementation, let's dive into the implementation. The package structure is as follows:

First, what we need to have is the rectifier. Like other activation functions, we implement it in ActivationFunction.java as ReLU:

public static double ReLU(double x) { if(x > 0) { return x; } else { return 0.; } }

Also, we define dReLU as the derivative of the rectifier:

public static double dReLU(double y) { if(y > 0) { return 1.; } else { return 0.; } }